<script>
$(document).ready(function() {
		$( "#tabs" ).tabs({
			tabTemplate: '<div><a href="#{href}"><span>#{label}</span></a></div>',
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible."
						);
				}
			},
		});
	});

var itemsimages = <?php echo json_encode($itemsimages); ?>;
</script>

<div id="tabs">
	<ul> 
	<?php
	foreach($plugins as $plugin)
	{
		echo '<li><a href="'.$html->url(array('controller'=>'plugins','action'=>$plugin['action'])).'" title="panelconfig">'.$plugin['name'].'</a></li>';
	}
	?>	
	</ul>
</div>
